import java.util.Scanner;

public class MC0309魔法项链 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int[] arr = new int[n];
        long count = 0;
        for (int i = 0; i < n; i++) {
            count += arr[i] = input.nextInt();
        }
        System.out.println(count * n);
        input.close();
    }
}
